<template>
  <div class="app-container">
    <!-- <div id="logout-wrapper">
      <span style="display:block;" @click="logout">{{ $t('ship.navbar.logOut') }}</span>
    </div> -->
    <div class="user">
      <strong>{{ user.username }}</strong><br>
      <small>{{ user.roleName }}</small>
    </div>
    <el-row class="user-content" style="">
      <el-col :span="3" class="profile">
        <img class="user-avatar" src="@/assets/img/user.png" width="100"><br>
        <p><span class="title"><i class="el-icon-phone"></i>&nbsp;&nbsp;{{ user.phone }}</span></p>
        <p><span class="title"><i class="el-icon-message"></i>&nbsp;&nbsp;{{ user.email }}</span></p>
<!--        <p><span class="title"><i class="el-icon-open"></i>&nbsp;&nbsp;{{ user.status == 0 ?'启用' : '禁用' }}</span></p>-->
      </el-col>
      <el-col :span="21" style="padding-left:10px;">
        <el-tabs v-model="activeName" @tab-click="handleClick">
          <el-tab-pane label="Personal Information" name="profile"></el-tab-pane>
<!--          <el-tab-pane label="最近活动" name="timeline"></el-tab-pane>-->
          <el-tab-pane label="Change Password" name="updatePwd"></el-tab-pane>
        </el-tabs>
        <el-form label-width="80px">
          <h3>Basic Information</h3>
          <el-form-item label="Name">
            <span>{{ user.username }}</span>
          </el-form-item>
          
          <!-- <h3>联系信息</h3>
          <el-form-item label="手机">
            <span>{{ user.phone }}</span>
          </el-form-item>
          <el-form-item label="邮箱">
            <span> {{ user.email }}</span>
          </el-form-item> -->
        </el-form>
      </el-col>
    </el-row>


  </div>
</template>

<script src="./profile.js"></script>


<style rel="stylesheet/scss" lang="scss" scoped>
  div#logout-wrapper {
    float: right;

    >span {
      font-size: 0.9rem;
      cursor: pointer;
    }
    >span:hover {
      color: #1ab5ff;
      text-decoration: underline;
    }
  }
  @import "src/styles/common.scss";
</style>

